PATH![]() |
![]() ![]() |
Sets the size and position of a window in its user state.
pascal OSStatus SetWindowIdealUserState (
WindowPtr window,
Rect *userState);
Because the window definition function relies upon the WStateData structure, it is unaware of the ideal standard state, and this causes the user state data that it stores in the WStateData structure to be unreliable. While the Window Manager is reliably aware of the window's zoom state, it cannot record the current user state in the WStateData structure, because the window definition function can overwrite that data. Therefore, the function ZoomWindowIdeal maintains the window's user state independently of the WStateData structure. The SetWindowIdealUserState function gives your application access to the user state data maintained by ZoomWindowIdeal . However, your application does not typically need to use this function; it is supplied for completeness.
The function GetWindowIdealUserState .